HAL MDF constants migration

This section provides information about the HAL MDF constants migration.

Note

  • In HAL1, a single driver handles both MDF and ADF peripherals.

  • In HAL2, the HAL MDF driver has been split into two separate drivers HAL MDF and HAL ADF. For more details, see : MDF specific concept.

  • In HAL1, there are some constants applicable for:

    • Both MDF and ADF peripheral.

    • MDF peripheral only.

    • ADF peripheral only.

  • In the following migration document when the constant is applicable for both MDF and ADF the migration describes how to move from HAL1 MDF to HAL2 MDF. The same applies for ADF, example:

  • In HAL1, MDF_CLOCK_TRIG_RISING_EDGE constant becomes :

    • HAL_MDF_OUT_CLOCK_TRIG_RISING_EDGE in HAL2 MDF driver.

    • HAL_ADF_OUT_CLOCK_TRIG_RISING_EDGE in HAL2 ADF driver.

  • When the constant is applicable only for MDF the migration provides the equivalent for MDF.

  • When the constant is applicable only for ADF the migration provides the equivalent for ADF.

Constants applicable for MDF and ADF

HAL MDF bitstream edge selection constants

HAL1

HAL2

In HAL1, combined defines are used to select bitstream and sampling edge for both MDF and ADF peripherals.

#define MDF_BITSTREAM0_FALLING
#define MDF_BITSTREAM0_RISING
#define MDF_BITSTREAM1_FALLING
#define MDF_BITSTREAM1_RISING
#define MDF_BITSTREAM2_FALLING
#define MDF_BITSTREAM2_RISING
#define MDF_BITSTREAM3_FALLING
#define MDF_BITSTREAM3_RISING
#define MDF_BITSTREAM4_FALLING
#define MDF_BITSTREAM4_RISING
#define MDF_BITSTREAM5_FALLING
#define MDF_BITSTREAM5_RISING

In HAL2, use hal_mdf_block_index_t enumeration to select bitstream and hal_mdf_bitstream_input_edge_t enumeration to select sampling edge.

typedef enum
{
  HAL_MDF_BLOCK_INDEX_0,
  HAL_MDF_BLOCK_INDEX_1,
  HAL_MDF_BLOCK_INDEX_2,
  HAL_MDF_BLOCK_INDEX_3,
  HAL_MDF_BLOCK_INDEX_4,
  HAL_MDF_BLOCK_INDEX_5
} hal_mdf_block_index_t;

typedef enum
{
  HAL_MDF_BSMX_INPUT_RISING,
  HAL_MDF_BSMX_INPUT_FALLING
} hal_mdf_bitstream_input_edge_t;

Note

The number of block indexes may vary between STM32 series, please refer to the specific series reference manual to get the available block indexes.


HAL MDF clock trigger options constants

HAL1

HAL2

In HAL1, clock trigger sources defines are provided for both MDF and ADF peripherals.



#define MDF_CLOCK_TRIG_EXTI11
#define MDF_CLOCK_TRIG_EXTI15
#define MDF_CLOCK_TRIG_LPTIM1_OUT
               .
               .
               .

In HAL2, these defines are provided as an enumeration.


typedef enum
{
   HAL_MDF_OUT_CLOCK_TRIG_EXTI11,
   HAL_MDF_OUT_CLOCK_TRIG_EXTI15,
   HAL_MDF_OUT_CLOCK_TRIG_LPTIM1_OUT,
               .
               .
               .
} hal_mdf_output_clock_trigger_source_t;

For ADF the corresponding enumeration is hal_adf_output_clock_trigger_source_t.


Note

Clock trigger options may vary between STM32 series, please refer to the specific series reference manual to get the available clock triggers.

Related concepts:


HAL MDF data source selections constants

HAL1

HAL2

In HAL1, digital filter data sources defines are provided for both MDF and ADF peripherals.



#define MDF_DATA_SOURCE_ADCITF1
#define MDF_DATA_SOURCE_ADCITF2
#define MDF_DATA_SOURCE_BSMX
               .
               .
               .

In HAL2, these defines are provided as an enumeration.


typedef enum
{
   HAL_MDF_DFLT_DATA_SOURCE_ADCITF1,
   HAL_MDF_DFLT_DATA_SOURCE_ADCITF2,
   HAL_MDF_DFLT_DATA_SOURCE_BSMX
               .
               .
               .
} hal_mdf_dflt_data_source_t;

For ADF the corresponding enumeration is hal_adf_dflt_data_source_t.


Note

Data source options may vary between STM32 series, please refer to the specific series reference manual to get the available data sources.

Related concepts:


HAL MDF clock trigger edge selections constants

HAL1

HAL2

In HAL1, clock trigger edge defines are provided for both MDF and ADF peripherals.


#define MDF_CLOCK_TRIG_RISING_EDGE
#define MDF_CLOCK_TRIG_FALLING_EDGE

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_OUT_CLOCK_TRIG_RISING_EDGE,
  HAL_MDF_OUT_CLOCK_TRIG_FALLING_EDGE
} hal_mdf_output_clock_trigger_edge_t;

For ADF the corresponding enumeration is hal_adf_output_clock_trigger_edge_t.

Related concepts:


HAL MDF filter trigger edge selections constants

HAL1

HAL2

In HAL1, filter trigger edge defines are provided for both MDF and ADF peripherals.


#define MDF_FILTER_TRIG_RISING_EDGE
#define MDF_FILTER_TRIG_FALLING_EDGE

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DFLT_TRIG_RISING_EDGE,
  HAL_MDF_DFLT_TRIG_FALLING_EDGE
} hal_mdf_dflt_trigger_edge_t;

For ADF the corresponding enumeration is hal_adf_dflt_trigger_edge_t.

Related concepts:


HAL MDF FIFO threshold levels constants

HAL1

HAL2

In HAL1, fifo threshold levels defines are provided for both MDF and ADF peripherals.


#define MDF_FIFO_THRESHOLD_HALF_FULL
#define MDF_FIFO_THRESHOLD_NOT_EMPTY

In HAL2, these defines are provided as an enumeration.

 typedef enum
{
  HAL_MDF_DFLT_FIFO_THRESHOLD_HALF_FULL,
  HAL_MDF_DFLT_FIFO_THRESHOLD_NOT_EMPTY
} hal_mdf_dflt_fifo_threshold_t;

For ADF the corresponding enumeration is hal_adf_dflt_fifo_threshold_t.

Related concepts:


HAL MDF high pass filter cutoff frequencies constants

HAL1

HAL2

In HAL1, high pass filter cutoff frequency defines are provided for both MDF and ADF peripherals.


#define MDF_HPF_CUTOFF_0_000625FPCM
#define MDF_HPF_CUTOFF_0_00125FPCM
#define MDF_HPF_CUTOFF_0_0025FPCM
#define MDF_HPF_CUTOFF_0_0095FPCM

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DFLT_HPF_CUT_OFF_0_000625FPCM,
  HAL_MDF_DFLT_HPF_CUT_OFF_0_00125FPCM,
  HAL_MDF_DFLT_HPF_CUT_OFF_0_0025FPCM,
  HAL_MDF_DFLT_HPF_CUT_OFF_0_0095FPCM
} hal_mdf_dflt_hpf_cut_off_frequency_t;

For ADF the corresponding enumeration is hal_adf_dflt_hpf_cut_off_frequency_t.

Related concepts:


HAL MDF operating modes constants

HAL1

HAL2

In HAL1, acquisition modes defines are provided for both MDF and ADF peripherals.


#define MDF_MODE_ASYNC_CONT
#define MDF_MODE_ASYNC_SINGLE
#define MDF_MODE_SYNC_CONT
#define MDF_MODE_SYNC_SINGLE
#define MDF_MODE_SYNC_SNAPSHOT
#define MDF_MODE_WINDOW_CONT

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DFLT_ACQ_MODE_ASYNC_CONT,
  HAL_MDF_DFLT_ACQ_MODE_ASYNC_SINGLE,
  HAL_MDF_DFLT_ACQ_MODE_SYNC_CONT,
  HAL_MDF_DFLT_ACQ_MODE_SYNC_SINGLE,
  HAL_MDF_DFLT_ACQ_MODE_SYNC_SNAPSHOT,
  HAL_MDF_DFLT_ACQ_MODE_WINDOW_CONT
} hal_mdf_dflt_acquisition_mode_t;

For ADF the corresponding enumeration is hal_adf_dflt_acquisition_mode_t.

Related concepts:


HAL MDF output clock selections constants

HAL1

HAL2

In HAL1, output clock selections defines are provided for both MDF and ADF peripherals:




#define MDF_OUTPUT_CLOCK_0
#define MDF_OUTPUT_CLOCK_1
#define MDF_OUTPUT_CLOCK_ALL

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_OUTPUT_CLOCK_NONE,
  HAL_MDF_OUTPUT_CLOCK_CCK0,
  HAL_MDF_OUTPUT_CLOCK_CCK1,
  HAL_MDF_OUTPUT_CLOCK_ALL
} hal_mdf_output_clock_pins_t;

For ADF the corresponding enumeration is hal_adf_output_clock_pins_t.

Related concepts:


HAL MDF serial interface clock source constants

HAL1

HAL2

In HAL1, serial interface clock source defines are provided for both MDF and ADF peripherals.


#define MDF_SITF_CCK0_SOURCE
#define MDF_SITF_CCK1_SOURCE
#define MDF_SITF_CKI_SOURCE

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_SITF_CLOCK_SOURCE_CCK0,
  HAL_MDF_SITF_CLOCK_SOURCE_CCK1,
  HAL_MDF_SITF_CLOCK_SOURCE_CKI
} hal_mdf_serial_interface_clock_source_t;

For ADF the corresponding enumeration is hal_adf_serial_interface_clock_source_t.

Related concepts:


HAL MDF serial interface mode constants

HAL1

HAL2

In HAL1, serial interface mode defines are provided for both MDF and ADF peripherals.


#define MDF_SITF_LF_MASTER_SPI_MODE
#define MDF_SITF_MANCHESTER_FALLING_MODE
#define MDF_SITF_MANCHESTER_RISING_MODE
#define MDF_SITF_NORMAL_SPI_MODE

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_SITF_MODE_LF_MASTER_SPI,
  HAL_MDF_SITF_MODE_MANCHESTER_FALLING,
  HAL_MDF_SITF_MODE_MANCHESTER_RISING,
  HAL_MDF_SITF_MODE_NORMAL_SPI
} hal_mdf_serial_interface_mode_t;

For ADF the corresponding enumeration is hal_adf_serial_interface_mode_t.

Related concepts:


HAL MDF CIC modes constants

HAL1

HAL2

In HAL1, digital filter CIC modes defines are provided for both MDF and ADF peripherals.


#define MDF_TWO_FILTERS_MCIC_FASTSINC
#define MDF_TWO_FILTERS_MCIC_SINC1
#define MDF_TWO_FILTERS_MCIC_SINC2
#define MDF_TWO_FILTERS_MCIC_SINC3
#define MDF_ONE_FILTER_SINC4
#define MDF_ONE_FILTER_SINC5

In HAL2, these defines are provided as an enumeration:

typedef enum
{
  HAL_MDF_DFLT_CIC_SPLIT_FASTSINC_MCIC,
  HAL_MDF_DFLT_CIC_SPLIT_SINC1_MCIC,
  HAL_MDF_DFLT_CIC_SPLIT_SINC2_MCIC,
  HAL_MDF_DFLT_CIC_SPLIT_SINC3_MCIC,
  HAL_MDF_DFLT_CIC_ONE_FILTER_SINC4,
  HAL_MDF_DFLT_CIC_ONE_FILTER_SINC5
} hal_mdf_dflt_cic_mode_t;

For ADF the corresponding enumeration is hal_adf_dflt_cic_mode_t.

Related concepts:


HAL MDF error code constants

HAL1

HAL2

#define MDF_ERROR_NONE
#define MDF_ERROR_ACQUISITION_OVERFLOW
#define MDF_ERROR_RSF_OVERRUN
#define MDF_ERROR_CLOCK_ABSENCE
#define MDF_ERROR_SHORT_CIRCUIT
#define MDF_ERROR_SATURATION
#define MDF_ERROR_DMA
#define MDF_ERROR_OUT_OFF_LIMIT
#define MDF_ERROR_INVALID_CALLBACK
#define HAL_MDF_ERROR_NONE
#define HAL_MDF_ERROR_DFLT_ACQ_OVERFLOW
#define HAL_MDF_ERROR_DFLT_RSF_OVERRUN
#define HAL_MDF_ERROR_SITF_CLOCK_ABSENCE
#define HAL_MDF_ERROR_SHORT_CIRCUIT
#define HAL_MDF_ERROR_DFLT_SATURATION
#define HAL_MDF_ERROR_DMA
Removed : These kinds of logical errors
are reported by direct function return.

For ADF the corresponding constant are HAL_ADF_ERROR_NONE, HAL_ADF_ERROR_DFLT_ACQ_OVERFLOW, HAL_ADF_ERROR_DFLT_RSF_OVERRUN, HAL_ADF_ERROR_SITF_CLOCK_ABSENCE, HAL_ADF_ERROR_DFLT_SATURATION and HAL_ADF_ERROR_DMA.

Related concepts:


Constants applicable for MDF only

HAL MDF filter trigger sources constants

HAL1

HAL2

In HAL1, filter trigger sources defines are provided for MDF peripheral only (not supported by ADF).



#define MDF_FILTER_TRIG_TRGO
#define MDF_FILTER_TRIG_OLD_EVENT
#define MDF_FILTER_TRIG_TIM1_TRGO
               .
               .
               .

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DFLT_TRIG_TRGO,
  HAL_MDF_DFLT_TRIG_OLD_EVENT,
  HAL_MDF_DFLT_TRIG_TIM1_TRGO,
               .
               .
               .
} hal_mdf_dflt_trigger_source_t;

Related concepts:


HAL MDF break signal indicator constants

HAL1

HAL2

In HAL1, Break Signal defines are provided for MDF peripheral only (not supported by ADF).

#define MDF_NO_BREAK_SIGNAL
#define MDF_TIM1_BREAK_SIGNAL
#define MDF_TIM1_BREAK2_SIGNAL
#define MDF_TIM8_BREAK_SIGNAL
#define MDF_TIM8_BREAK2_SIGNAL
                 .
                 .
                 .

In HAL2, the equivalent defines for the MDF are the following.


#define HAL_MDF_SIGNAL_NO_BREAK
#define HAL_MDF_SIGNAL_TIM1_BREAK
#define HAL_MDF_SIGNAL_TIM1_BREAK2
#define HAL_MDF_SIGNAL_TIM8_BREAK
#define HAL_MDF_SIGNAL_TIM8_BREAK2
                 .
                 .
                 .

Note

Break signal options may vary between STM32 series, please refer to the specific series reference manual to get the available break signals.

Related concept:


HAL MDF integrator output division factors constants

HAL1

HAL2

In HAL1, integrator output division factors defines are provided for MDF peripheral only (not supported by ADF).



#define MDF_INTEGRATOR_OUTPUT_DIV_128
#define MDF_INTEGRATOR_OUTPUT_DIV_32
#define MDF_INTEGRATOR_OUTPUT_DIV_4
#define MDF_INTEGRATOR_OUTPUT_NO_DIV

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DLFT_INT_OUTPUT_DIV_128,
  HAL_MDF_DLFT_INT_OUTPUT_DIV_32,
  HAL_MDF_DLFT_INT_OUTPUT_DIV_4,
  HAL_MDF_DLFT_INT_OUTPUT_NO_DIV
} hal_mdf_dflt_int_output_division_t;

Related concepts:


HAL MDF OLD filter configurations constants

HAL1

HAL2

In HAL1, out of limit detector filter defines are provided for MDF peripheral only (not supported by ADF).



#define MDF_OLD_FILTER_FASTSINC
#define MDF_OLD_FILTER_SINC1
#define MDF_OLD_FILTER_SINC2
#define MDF_OLD_FILTER_SINC3

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_OLD_CIC_ORDER_FASTSINC,
  HAL_MDF_OLD_CIC_ORDER_SINC1,
  HAL_MDF_OLD_CIC_ORDER_SINC2,
  HAL_MDF_OLD_CIC_ORDER_SINC3
} hal_mdf_old_cic_order_t;

Related concepts:


HAL MDF old threshold levels constants

HAL1

HAL2

In HAL1, out of limit threshold levels defines are provided for MDF peripheral only (not supported by ADF).



#define MDF_OLD_IN_THRESHOLDS
#define MDF_OLD_HIGH_THRESHOLD
#define MDF_OLD_LOW_THRESHOLD

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_OLD_THRESHOLDS_IN,
  HAL_MDF_OLD_THRESHOLD_HIGH,
  HAL_MDF_OLD_THRESHOLD_LOW
} hal_mdf_old_threshold_info_t;

Related concepts:


HAL MDF old threshold signal types constants

HAL1

HAL2

In HAL1, out of limit events defines are provided for MDF peripheral only (not supported by ADF).


#define MDF_OLD_SIGNAL_IN_THRESHOLDS
#define MDF_OLD_SIGNAL_OUTSIDE_THRESHOLDS

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_OLD_EVENT_IN_THRESHOLDS,
  HAL_MDF_OLD_EVENT_OUTSIDE_THRESHOLDS,
} hal_mdf_old_event_config_t;

Related concepts:


HAL MDF reshape filter decimation ratios constants

HAL1

HAL2

In HAL1, reshape filter decimation ratio defines are provided for MDF peripheral only (not supported by ADF).



#define MDF_RSF_DECIMATION_RATIO_4
#define MDF_RSF_DECIMATION_RATIO_1

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DFLT_RSF_DR_4,
  HAL_MDF_DFLT_RSF_DR_1
} hal_mdf_dflt_rsf_decimation_ratio_t;

Related concepts:


Constants applicable for ADF only

HAL MDF sound activity detector frame size constants

HAL1

HAL2

In HAL1, SAD frame sizes defines are provided for ADF peripheral only (not supported by MDF).


#define MDF_SAD_8_PCM_SAMPLES
#define MDF_SAD_16_PCM_SAMPLES
#define MDF_SAD_32_PCM_SAMPLES
#define MDF_SAD_64_PCM_SAMPLES
#define MDF_SAD_128_PCM_SAMPLES
#define MDF_SAD_256_PCM_SAMPLES
#define MDF_SAD_512_PCM_SAMPLES

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_ADF_SAD_FRAME_SIZE_8_PCM_SAMPLES,
  HAL_ADF_SAD_FRAME_SIZE_16_PCM_SAMPLES,
  HAL_ADF_SAD_FRAME_SIZE_32_PCM_SAMPLES,
  HAL_ADF_SAD_FRAME_SIZE_64_PCM_SAMPLES,
  HAL_ADF_SAD_FRAME_SIZE_128_PCM_SAMPLES,
  HAL_ADF_SAD_FRAME_SIZE_256_PCM_SAMPLES,
  HAL_ADF_SAD_FRAME_SIZE_512_PCM_SAMPLES
} hal_adf_sad_frame_size_t;

Related concepts :


HAL MDF sound activity detector mode constants

HAL1

HAL2

In HAL1, SAD mode defines are provided for ADF peripheral only (not supported by MDF).



#define MDF_SAD_VOICE_ACTIVITY_DETECTOR
#define MDF_SAD_SOUND_DETECTOR
#define MDF_SAD_AMBIENT_NOISE_DETECTOR

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_ADF_SAD_MODE_VOICE_ACTIVITY,
  HAL_ADF_SAD_MODE_SOUND,
  HAL_ADF_SAD_MODE_AMBIENT_NOISE
} hal_adf_sad_mode_t;

Related concepts:


HAL MDF sound activity detector trigger event constants

HAL1

HAL2

In HAL1, SAD trigger event defines are provided for ADF peripheral only (not supported by MDF).



#define MDF_SAD_ENTER_DETECT
#define MDF_SAD_ENTER_EXIT_DETECT

In HAL2, these defines are provided as an enumeration.

typedef enum
{
 HAL_ADF_SAD_TRIGGER_ENTER_DETECT,
 HAL_ADF_SAD_TRIGGER_ENTER_EXIT_DETECT
} hal_adf_sad_trigger_event_t;

Related concepts:


HAL MDF sound activity detector hangover time window constants

HAL1

HAL2

In HAL1, SAD hangover_time defines are provided for ADF peripheral only (not supported by MDF).



#define MDF_SAD_HANGOVER_4_FRAMES
#define MDF_SAD_HANGOVER_8_FRAMES
#define MDF_SAD_HANGOVER_16_FRAMES
#define MDF_SAD_HANGOVER_32_FRAMES
#define MDF_SAD_HANGOVER_64_FRAMES
#define MDF_SAD_HANGOVER_128_FRAMES
#define MDF_SAD_HANGOVER_256_FRAMES
#define MDF_SAD_HANGOVER_512_FRAMES

In HAL2, these defines are provided as an enumeration.

typedef enum
{
 HAL_ADF_SAD_HANGOVER_TIME_4_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_8_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_16_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_32_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_64_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_128_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_256_FRAMES,
 HAL_ADF_SAD_HANGOVER_TIME_512_FRAMES
} hal_adf_sad_hangover_time_window_t;

Related concepts:


HAL MDF sound activity detector learning frames constants

HAL1

HAL2

In HAL1, SAD learning frames defines are provided for ADF peripheral only (not supported by MDF).



#define MDF_SAD_LEARNING_2_FRAMES
#define MDF_SAD_LEARNING_4_FRAMES
#define MDF_SAD_LEARNING_8_FRAMES
#define MDF_SAD_LEARNING_16_FRAMES
#define MDF_SAD_LEARNING_32_FRAMES

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_ADF_SAD_LEARNING_FRAMES_2,
  HAL_ADF_SAD_LEARNING_FRAMES_4,
  HAL_ADF_SAD_LEARNING_FRAMES_8,
  HAL_ADF_SAD_LEARNING_FRAMES_16,
  HAL_ADF_SAD_LEARNING_FRAMES_32
} hal_adf_sad_learning_frames_t;

Related concepts:


HAL MDF sound activity detector memory transfer constants

HAL1

HAL2

In HAL1, SAD memory transfer defines are provided for ADF peripheral only (not supported by MDF).


#define MDF_SAD_NO_MEMORY_TRANSFER
#define MDF_SAD_MEMORY_TRANSFER_IN_DETECT
#define MDF_SAD_MEMORY_TRANSFER_ALWAYS

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_ADF_SAD_MEMORY_TRANSFER_NO,
  HAL_ADF_SAD_MEMORY_TRANSFER_DURING_DETECTION,
  HAL_ADF_SAD_MEMORY_TRANSFER_ALWAYS
} hal_adf_sad_memory_transfer_t;

Related concepts:


HAL MDF sound activity detector signal to noise constants

HAL1

HAL2

In HAL1, SAD signal to noise ratio threshold defines are provided for ADF peripheral only (not supported by MDF).

#define MDF_SAD_SIGNAL_NOISE_3_5DB
#define MDF_SAD_SIGNAL_NOISE_6DB
#define MDF_SAD_SIGNAL_NOISE_9_5DB
#define MDF_SAD_SIGNAL_NOISE_12DB
#define MDF_SAD_SIGNAL_NOISE_15_6DB
#define MDF_SAD_SIGNAL_NOISE_18DB
#define MDF_SAD_SIGNAL_NOISE_21_6DB
#define MDF_SAD_SIGNAL_NOISE_24_1DB
#define MDF_SAD_SIGNAL_NOISE_27_6DB
#define MDF_SAD_SIGNAL_NOISE_30_1DB

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_ADF_SAD_SIGNAL_TO_NOISE_3_5_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_6_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_9_5_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_12_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_15_6_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_18_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_21_6_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_24_1_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_27_6_DB,
  HAL_ADF_SAD_SIGNAL_TO_NOISE_30_1_DB
} hal_adf_sad_signal_to_noise_threshold_t;

Related concepts:


HAL MDF snapshot bit widths constants

HAL1

HAL2

In HAL1, snapshot format defines are provided for MDF peripheral only (not supported by ADF).



#define MDF_SNAPSHOT_23BITS
#define MDF_SNAPSHOT_16BITS

In HAL2, these defines are provided as an enumeration.

typedef enum
{
  HAL_MDF_DFLT_SNAPSHOT_23BITS,
  HAL_MDF_DFLT_SNAPSHOT_16BITS
} hal_mdf_dflt_snapshot_format_t;

Related concepts: